<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>小说分类</title>
    <link rel="stylesheet" href="layui/css/layui.css">
    <link rel="stylesheet" href="css/authormain.css">
</head>

<body>
	<%@ include file="novelhead.jsp" %>
    <body>
    <div class="layui-container">
        <!--小说分类-->
        <div class="layui-row">
            <!--作者作品-->
            <div class="layui-card">
                <div class="layui-card-header" style="border-bottom:solid black 1px !important;">
                    <span style="font-size:24px;font-weight: 1000">玄幻</span>
                </div>
                <div class="layui-card-body">
                    <!--第一条信息-->
                    <c:forEach items="${serachtype}" var="obj">
                    <div class="layui-row" style="border-bottom:solid 1px #BCBCBC;margin-bottom: 10px;">
                        <div class="layui-col-md2">
                            <img src="../upload/${obj.photourl}">
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-card">
                                <div class="layui-card-header">
                                    <p style=" font-family: '楷体';font-size: 18px;font-weight: 600">${obj.novelname}</p>
                                </div>
                                <div class="layui-card-body">
                                    <table class="noveltable">
                                        <tr>
                                            <td>${obj.nickname}</td>
                                            <td style="border:1px solid #BCBCBC;border-bottom: none;border-top: none;">${boj.typename}</td>
                                            <td>完本</td>
                                        </tr>
                                    </table>
                                </div>
                                <div class="layui-card-foot">
                                    <p class="abstract" style="margin-left:3%;color:gray">
                                        ${obj.abstrac}
                                    </p>
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md4">
                            <div class="layui-row">
                                <table class="tableinfo">
                                    <tr>
                                        <td>1313万</td>
                                        <td>&nbsp;总字数</td>
                                    </tr>
                                    <tr>
                                        <td>1313万</td>
                                        <td>&nbsp;总推荐</td>
                                    </tr>
                                    <tr>
                                        <td>1313656万</td>
                                        <td>&nbsp;总点击</td>
                                    </tr>
                                </table>
                            </div>
                            <div class="layui-row">
                                <a href="novel.action?novelid=${obj.novelid}" class="redbtn">书籍详情</a>
                                <c:if test="${loginuser==null}">
                                	<a href="login.jsp" class="bluebtn">加入书架</a>
                                </c:if>
                                <c:if test="${loginuser!=null}">
                                	<a href="addboosroom.action?userid=${loginuser.userid}&novelid=${obj.novelid}&chapterid=1" class="bluebtn">加入书架</a>
                                </c:if>
                            </div>
                        </div>
                    </div>
   					</c:forEach>
                </div>
            </div>
        </div>
    </div>
</body>
    <%@ include file="foot.jsp" %>
</body>
<script src="layui/layui.js"></script>

</html>